package com.banmoon.state;

/**
 * 空血状态
 */
public class NoHpState extends AbstractState{

    private Person person;

    public NoHpState(Person person) {
        super(0);
        this.person = person;
    }

    @Override
    public void takeMedicine() {
        System.out.println("阵亡啦，当前状态不能吃药，快去复活");
    }

    @Override
    public void resurrect() {
        System.out.println("正在返回出生点，请稍后");
        person.setState(new FullHpState(person));
    }

    @Override
    public void adventure() {
        System.out.println("阵亡啦，当前状态不能探险，快去复活");
    }
}
